package com.jiyun.testlist.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.model.Quiz;
import com.jiyun.testlist.mapper.QuziMapper;
import com.jiyun.testlist.service.QuizService;
import com.jiyun.vo.QuizVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QuizServiceImpl extends ServiceImpl<QuziMapper, Quiz>  implements QuizService {
    @Autowired
    QuziMapper quziMapper;

    @Override
    public Page<QuizVo> findPage(Integer pageNum, Integer pageSize, QuizVo quizVo) {
        Page<QuizVo> quizVoPage = new Page<>(pageNum, pageSize);
        quziMapper.findPage(quizVoPage,quizVo);
        return quizVoPage;
    }

    @Override
    public Integer find4() {
        return quziMapper.find4();
    }
}
